﻿// ------------------------------------------------------------------------------------------------
//  <copyright file="Program.cs" company="Iveely">
//    Copyright (c) Iveely Liu.  All rights reserved.
//  </copyright>
//  
//  <Create Time>
//    12/03/2012 20:12 
//  </Create Time>
//  
//  <contact owner>
//    liufanping@iveely.com 
//  </contact owner>
//  -----------------------------------------------------------------------------------------------

#region

using System;
using IveelySE.Common.Log;
using IveelySE.Config;
using IveelySE.InternetService;
using IveelySE.Spider;

#endregion

namespace IveelySE.Run.Task
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            Application.SetSystemUpdate(false);
            Runtime.Initialization();
            Content.GetInstance().Write("IveelySE.Run.Task 准备就绪。", MessageType.Information);
            //爬虫索引数据等分析任务照常继续
            Runtime.CreateSchedule<Crawler>(0.1, 32 * 60, true);
            //创建Internet服务，访问规则：http://127.0.0.1/query=yourkeyword
            Runtime.CreateSchedule<Host>(0.01, 10);
           // Console.ReadKey();
        }
    }
}